package com.dpj.seckill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@ToString
@Getter
@AllArgsConstructor
public enum RespBeanEnum {





    //通用状态码
    SUCCESS(200,"success"),
    ERROR(500,"服务端异常"),
    //登录模块5002xx
    LOGIN_ERROR(500210,"用户名或密码错误"),

    MOBILE_ERROR(500211,"手机号码格式错误"),
    BIND_ERROR(500212,"参数校验"),
    SESSION_ERROR(500210,"用户不存在或者已经失效"),


    //秒杀并发模块5005xx
    STOCK_EMPTY_ERROR(500511,"商品库存不足"),
    REPEAT_BY_ERROR(5000512,"重复购买"),
    REQUEST_ILLEGAL(500502,"请求非法,请重新尝试"),
    ERROR_CAPTCHA(500503,"验证码输入错误"),
    ACCESS_LIMIT_REAHCED(500504,"访问过于频繁,请稍后再试"),

    //订单模块5003xx
    ORDER_NOT_EXIST(500300,"订单信息不存在");




    private  final Integer code;
    private final  String message;

}
